class UserController { // 创建类
    async create (ctx, next) { // 中间件
      console.log("请求成功")
      ctx.body = {"code":0,"msg":"Success","data":{name:'macrolam'}} // 请求响应
    }
    async edit (ctx, next) { // 中间件
        console.log("post请求成功")
        ctx.body = {"code":0,"msg":"Success","data":{name:'macrolam',age:'30'}} // 请求响应
      }
  }
  
  module.exports = new UserController()
  